package com.pro01.carcontrol.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "car")
public class CarConfig {

    private String ip;
    private int tcpPort;
    private int initPort;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getTcpPort() {
        return tcpPort;
    }

    public void setTcpPort(int tcpPort) {
        this.tcpPort = tcpPort;
    }

    public int getInitPort() {
        return initPort;
    }

    public void setInitPort(int initPort) {
        this.initPort = initPort;
    }
}